package com.itheima.mylistdemo;

/**
 * @author shanh
 */
public class GirlFriend {
    private String name;

    public GirlFriend(String name) {
        this.name = name;
    }

    public GirlFriend() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Test{
    public static void main(String[] args) {
        GirlFriend girlFriend = new GirlFriend();
        girlFriend.setName("拇指姑凉");
        System.out.println(girlFriend.getName());
    }
}